<?php

    /**
     * Engine
     *
     * @package      Core
     * @subpackage   Url_Engine
     *
     * @license      GNU Lesser General Public Licence see LICENCE-LGPL file or http://www.gnu.org/licenses/lgpl.html
     */
    interface Core_Url_Engine_Interface
    {
		/**
		 * Parses some url components
		 *
		 * @param       string      $scriptNamePath : /path/index.php
		 * @param       string      $pathinfo : the path info part of the url (part between script name and query)
		 * @param       array       $params : url parameters (query part e.g. $_REQUEST)
		 * @return      Core_Url_Action
		 */
		public function parse($scriptNamePath, $pathinfo, array $params);

		/**
		 * Creates a Url object with the given action datas
		 *
		 * @param        Core_Url_Action     $url : information about the action
		 * @return       Core_Url            the url correspondant to the action
		 */
		public function create(Core_Url_Action $urlact);
   }
